package com.ruoyi.secondvitim.domain;

import java.util.List;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 问卷细项对象 que_form_detail
 * 
 * @author alonso_ecit
 * @date 2021-12-17
 */
public class QueFormDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 主表id */
    @Excel(name = "主表id")
    private Long formId;

    /** 问卷名称*/
    private String formName;

    /** 1 单选 2 多选 3 单行文本 4 多行文本 */
    @Excel(name = "1 单选 2 多选 3 单行文本 4 多行文本")
    private String type;

    /** 问题 */
    @Excel(name = "问题")
    private String title;

    /** 选项，多选项使用$分隔 */
    @Excel(name = "选项，多选项使用$分隔")
    private String options;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 显示顺序 */
    private String orderNum;

    /** 是否必填*/
    private String required;

    /** 提交文本信息*/
    private String submitText;

    /** 单选项信息 */
    private List<QueFormDetailOption> queFormDetailOptionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFormId(Long formId) 
    {
        this.formId = formId;
    }

    public Long getFormId() 
    {
        return formId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<QueFormDetailOption> getQueFormDetailOptionList()
    {
        return queFormDetailOptionList;
    }

    public void setQueFormDetailOptionList(List<QueFormDetailOption> queFormDetailOptionList)
    {
        this.queFormDetailOptionList = queFormDetailOptionList;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getRequired() {
        return required;
    }

    public void setRequired(String required) {
        this.required = required;
    }

    public String getSubmitText() {
        return submitText;
    }

    public void setSubmitText(String submitText) {
        this.submitText = submitText;
    }

    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("formId", getFormId())
            .append("type", getType())
            .append("title", getTitle())
            .append("options", getOptions())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("status", getStatus())
            .append("queFormDetailOptionList", getQueFormDetailOptionList())
            .toString();
    }
}
